var {clickContent, randomUtils, logUtils} = require ('../../utils/index');
var {Action} = require ('../../base/index');
var aTreasure = new Action ('开宝箱得金币', {});
aTreasure.exec = function () {
  var content = '开宝箱得金币';
  if (clickContent (content)) {
    sleep (randomUtils.getRandom (3, 6, 1000));
  } else {
    logUtils.print ('没找到:' + content);
  }
};

module.exports = aTreasure;
